package com.bh.service.impl;

import com.bh.mapper.MenuMapper;
import com.bh.pojo.entry.Menu;
import com.bh.pojo.vo.UserVO;
import com.bh.service.MenuService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class MenuServiceImpl implements MenuService {
    @Autowired
    private MenuMapper mapper;
    @Override
    public List<Menu> findAll(String likename) {
        return mapper.findAll(likename);
    }

    @Override
    public List<Menu> findById(Integer id) {
        return mapper.findById(id);
    }
}
